-- GENERATED SPELL FOR [Claximus] --


function spell0_25209(pUnit, Event) --@Arcane Barrage,n/a--
pUnit:FullCastSpellOnTarget(50273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25209', 624, 1)
end

function spell1_25209(pUnit, Event) --@Stabilized Magic,Self--
pUnit:FullCastSpellOnTarget(50275,pUnit)
pUnit:RegisterEvent('Sorts_25209', 633, 1)
end

function Sorts_25209(pUnit, Event)
local choix_sorts_25209 = math.random(0, 1)
if choix_sorts_25209 == 0 then
pUnit:RegisterEvent('spell0_25209', 1, 1)
end
if choix_sorts_25209 == 1 then
pUnit:RegisterEvent('spell1_25209', 1, 1)
end
end

function mob25209_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25209', math.random(1500, 3000), 1)
end

function mob25209_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25209_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25209_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25209, 1, 'mob25209_Action')
RegisterUnitEvent(25209, 2, 'mob25209_Leave')
RegisterUnitEvent(25209, 3, 'mob25209_Kill')
RegisterUnitEvent(25209, 4, 'mob25209_Die')
